package 分布式事务.事务A.daoA;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import 分布式事务.事务A.entity.TbWorkA;

import java.util.List;

/**
 * 数据访问接口
 */
@Repository
public interface WorkADao {
	
	@Select("select * from tb_work_a")
	List<TbWorkA> selectAll();
	
	@Insert("insert into tb_work_a(name) values(#{name})")
	int insert(String name);
}
